
import request from '@/utils/request'

// 提交售后申请
export function createOrderRefund(data:any) {
    return request({
        url: 'store.orderRefund/create',
        method: 'POST',
        data
    })
}

export function getOrderRefundList(data:any) {
    return request({
        url: 'store.orderRefund/list',
        method: 'GET',
        data
    })
}
// 取消申请
export function cancelOrderRefund(data:{
    id:number
}) {
    return request({
        url: 'store.orderRefund/cancel',
        method: 'PUT',
        data
    })
}

export function getOrderRefundDetail(data:{
    id:number | string;
}) {
    return request({
        url: 'store.orderRefund/detail',
        method: 'GET',
        data
    })
}

export function getExpressCompanySelect() {
    return request({
        url: 'store.expressCompany/select',
        method: 'GET',
    })
}

// 用户发货
export function deliveryOrderRefund(data:any) {
    return request({
        url: 'store.orderRefund/delivery',
        method: 'PUT',
        data
    })
}

// 确定收货
export function receiptOrderRefund(data:any){
    return request({
        url:'store.orderRefund/receipt',
        method:'PUT',
        data
    })
}



